package com.nervenets.general.entity;

import com.nervenets.general.enumeration.Enums;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class Selection implements Serializable {
    @ApiModelProperty(value = "描述文字")
    public String text;
    @ApiModelProperty(value = "值")
    public String value;

    public Selection(Enums enums) {
        this.text = enums.getText();
        this.value = enums.getValue();
    }
}
